//
//  FileStorage.h
//  KaiLuShiSmallShop
//
//  Created by hunuo on 14-9-16.
//  Copyright (c) 2014年 hunuo. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface FileStorage : NSObject

+(NSFileManager *)sharedFileManager;
+(NSString *)filePath:(NSString *)path;
+(BOOL)isExistFilePath:(NSString *)path;
+(void)createFilePath:(NSString *)path;

+(void)writeFileArray:(NSArray *)arr inPath:(NSString *)path;
+(NSArray *)getFileArrayFromPath:(NSString *)path;
+(void)deleteFileArrayWithPath:(NSString *)path;
+(void)updateFileArrayWithArray:(NSArray *)arr inPath:(NSString *)path;
+(void)updatefileArrayWithObject:(NSString *)obj atIndex:(NSInteger)ind inPath:(NSString *)path;

/**
 NSUserDefault添加字符串
 */
+(void)NSUserDefault_setObject:(NSString *)obj forKey:(NSString *)key;
/**
 NSUserDefault添加字典
 */
+(void)NSUserDefault_setDic:(NSDictionary *)dic;
/**
 NSUserDefault查询数据
 */
+(NSString *)NSUserDefault_getObjectForKey:(NSString *)key;
/**
 NSUserDefault添加Obj
 */
+(void)NSUserDefault_setObj:(id)objec forKey:(NSString *)key;
@end
